#ifndef __MYI2C_H__
#define __MYI2C_H__

#include <stdint.h>
#include <stm32f4xx_hal.h>

#define I2C_PORT    GPIOB
#define I2C_SCL_PIN GPIO_PIN_8
#define I2C_SDA_PIN GPIO_PIN_9

void myi2c_init(void);
void myi2c_start(void);
void myi2c_stop(void);
void myi2c_sendbyte(uint8_t Byte);
uint8_t myi2c_receivebyte(void);
void myi2c_sendack(uint8_t AckBit);
uint8_t myi2c_receiveack(void);

#endif